package com.ywgt.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.ywgt.mybatisHandler.JsonStringArrayTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 专题表
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dts_topic")
@ApiModel(value="Topic对象", description="专题表")
public class Topic implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "专题标题")
    private String title;

    @ApiModelProperty(value = "专题子标题")
    private String subtitle;

    @ApiModelProperty(value = "专题内容，富文本格式")
    private String content;

    @ApiModelProperty(value = "专题相关商品最低价")
    private BigDecimal price;

    @ApiModelProperty(value = "专题阅读量")
    private String readCount;

    @ApiModelProperty(value = "专题图片")
    private String picUrl;

    @ApiModelProperty(value = "排序")
    private Integer sortOrder;

    @ApiModelProperty(value = "专题相关商品序列码，用逗号分隔")
    @TableField(value = "goods",typeHandler = JsonStringArrayTypeHandler.class)
    private String[] goods;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date addTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "活动分享二维码图片")
    private String shareUrl;

    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;


}
